/*
* @Author: Administrator
* @Date:   2018-01-13 11:32:32
* @Last Modified by:   Administrator
* @Last Modified time: 2018-01-26 14:22:50
*/
export const restApi = '/api/v1'
export const topicList = '/topics'
export const topicDetail = '/topic'
export const login = '/user/login'
export const userInfo = '/user'
export const userCollection = '/topic_collect'
export const messageCount = '/message/count'
export const collect = '/topic_collect/collect'
export const deCollect = '/topic_collect/de_collect'
export function newReply(topicId) {
  return `/topic/${topicId}/replies`
}
export const postTopic = '/topics'
export const message = '/messages'
export function markOne(messageId) {
  return `/message/mark_one/${messageId}`
}
export const markAll = '/message/mark_all'
